<?php
/*
	我的足迹
*/
defined('BY_JYA') or exit('error');
$this->model('member')->checklogin();
$return['ice_menu_array']=array( array('menu_key' => 'index', 'menu_name' => '个人信息', 'menu_url' => custom_url('jy_weishop/member.info/',true)) );
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
if($_RQ['op']=='main'){
	$return['setting']=$this->plugin_setting('basic');
	$return['member']=pdo_get('core_members',array('id'=>$_SESSION['uid']));
	exi($return);
}

if($_RQ['op']=='post'){
	$postdata=get_postdata();
	pdo_update('core_members',array('realname'=>$postdata['realname'],'wechat'=>$postdata['wechat']),array('id'=>$_SESSION['uid']));
	exi('修改成功','');
}	
